package com.hk.label;

import javax.swing.JLabel;
import com.hk.global.ImageUrl;

public class LabelLose extends SuperLabel {
	private int x = 300;
	private int y = 110;
	private int w = 300;
	private int h = 300;
	
	public LabelLose() {
		super("");
		BoundsLabel(x, y, w, h);
		SetLabelIcon(ImageUrl.L_LOSE);
		HideLabel();
	}
	@Override
	public JLabel getLabel() {
		return label;
	}
	@Override
	public void ShowLabel() {
		BoundsLabel(x, y, w, h);
	}
	@Override
	public void HideLabel() {
		BoundsLabel(0, 0, 0, 0);
	}
	@Override
	public void UpdateLabel() {
		if (pg.isEnd() && !pg.isWin()) {
			ShowLabel();
		} else {
			HideLabel();
		}
	}
}
